

const {Op,Sequelize} = require("sequelize");

let obj = require("./Blog.js");

const sequelize = new Sequelize('soft1','postgres','510239621czz.',{
    host:'cailikes.fun',
    dialect:"postgres"
});


let Blog = sequelize.define('blog',obj);

sequelize.sync({force:true})
.then(()=>{
    Blog.bulkCreate([
        {
            title:'html',
            abstract:'html',
            content:'无了',
            classify:'好难',
            author:'我得发',
            time:'2022-05-11'
        },
        {
            title:'.net',
            abstract:'.net的编程',
            content:'学不好',
            classify:'凉凉',
            author:'要加油啊！',
            time:'2022-05-11'
        },
    ]);
});

module.exports={Op,Blog}